package com.qingcloud.base.remote.admin;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 事件保存规则
 */
@Data
public class MessageEventSaveRule implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "事件类型ID",example = "E1241")
    private Integer typeId;

    @ApiModelProperty(value = "事件编号",example = "E1241")
    private String eventCode;

    @ApiModelProperty(value = "默认告警等级")
    private Integer defaultLevel;

    @ApiModelProperty(value = "启用开始时间")
    private String startTime;

    @ApiModelProperty(value = "启用结束时间")
    private String endTime;

    @ApiModelProperty(value = "多少分钟内重复告警")
    private Integer repeatMinute;

    @ApiModelProperty(value = "计算规则")
    private List<MessageEventCalRule> calRuleList;

}
